﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace qiniuUI
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            login loginwin = new login();
            if (loginwin.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    Application.Run(new qiniuUI(login.login_ak,login.login_sk,login.login_bucket));
                    loginwin.Dispose();
                }
                catch(Exception ex)
                {
                    MessageBox.Show(ex.ToString());
                    MessageBox.Show("开始的时候输入有误，请重启软件");
                }
            }
        }
    }
}
